package com.zzh.interfaces;

import com.zzh.utils.BaseException;
import com.zzh.utils.BusinessException;

import java.text.MessageFormat;

public interface BusinessExceptionAssert extends IErrorCodeEnum, Assert{
	
	@Override
	default BaseException newException(Object... args) {
		
		String message = MessageFormat.format(getMsg(), args);
		return new BusinessException(this, args, message);
	}
}
